<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'testTab.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css"/>
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-patch.css"/>
	<script type="text/javascript" src="js/ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="js/ext/ext-all.js"></script>
	<script type="text/javascript">
	Ext.onReady(function(){
	
    var tabs = new Ext.TabPanel({
        renderTo: 'tabPage',
        activeTab: 0,
        width:900,
        height:400,
        plain:true,
        defaults:{autoScroll: true},
        items:[{
                title: '定量因素',
                html: "My content was added during construction."
            },{
                title: '定性因素',
                autoLoad:'view/Cashflow.jsp'
            },{
                title: '调整项',
                autoLoad: {url: 'view/Cashflow.jsp', params: 'foo=bar&wtf=1'}
            },{
                title: '评级结果',
                listeners: {activate: handleActivate},
                html: "I am tab 4's content. I also have an event listener attached."
            }
        ]
    });

    function handleActivate(tab){
        alert(tab.title + ' was activated.');
    }
});
	</script>

  </head>
  
  <body>
   <div id="tabPage"></div>
  </body>
</html>
